<div class="goods list search">

    <?php if($oRowset): ?>
        <div class="list">
            <?php foreach($oRowset as $oRow): ?><a href="<?php echo $this->createUrl('/goods/default/view/', array('id' => $oRow->alias, 'category' => $oRow->category_alias)); ?>">
                <?php if($oRow->getPhoto()): ?>
                    <figure>
                        <img class="lazy" alt="<?php echo $oRow->title; ?>" title="<?php echo $oRow->title; ?>" data-original="<?php echo $this->widget('ext.Img', array(
                            'oRow' => $oRow->getPhoto(),
                            'size' => 'list'
                        )); ?>" />
                        <img class="loader" src="/img/ajax-loader.gif" />
                    </figure>
                <?php endif; ?>

                <div class="title"><?php echo $oRow->title; ?></div>
                <p class="price"><?php echo Currencies::convert($oRow->price); ?></p>
                <?php if($oRow->old_price > 0): ?>
                    <p class="was"><span><?php echo Currencies::convert($oRow->old_price); ?></span> <span>скидка <?php echo 100 - round($oRow->price / $oRow->old_price * 100) ?>%</span></p>
                <?php endif; ?>
                </a><?php endforeach; ?>
        </div>
    <?php endif; ?>

    <?php
    $this->widget('CLinkPager', array(
        'pages' => $this->oPager,
        'maxButtonCount'=>9,
        'header'=>'',
        'htmlOptions'=>array('class'=>'pager'),
    )); ?>

</div>